file(GLOB SOURCES *.cpp)
file(GLOB HEADERS include/*.h)

foreach(def ${wxWidgets_DEFINITIONS})
	add_definitions(
		-D${def}
	)
endforeach()

add_executable(scc
  ${SOURCES} ${HEADERS}
)

target_include_directories(scc
  PRIVATE
     $<INSTALL_INTERFACE:include>
     $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)

target_link_libraries(scc
	PRIVATE
		Szarp2
		wxcommon
)

install(TARGETS scc
  RUNTIME DESTINATION "${INSTALL_BINDIR}" DESTINATION bin)

add_custom_target( scc_pl ALL msgfmt --output-file=pl/scc.mo pl/scc.po )
install(FILES pl/scc.mo DESTINATION "${SZARP_SHAREDIR}/locales/pl_PL/LC_MESSAGES/" )
